Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

Any sucessful PHP on W2K ? (R5? --- SURE!)
~Bella Nonfanateroopsi 19.Feb.03 11:45 PM a Web browser
Domino Server 6.0 Windows 2000


noticed this little bit of code a while back on phpbuilder. Someone (I forgot the name) wrote in with this edit to the httpd.cfg file and surprisingly it works great!

All you need to do, is install PHP on your server. Then, add these lines to the bottom of you httpd.cfg file: (right before #EOF)

# change suffix to stop recursive mapping to Exec
Map *.php /internal/php*.phptype
# This translates the first part to exec php.exe
Exec /internal/php* C:\php\php*
# map the .php back in
Map *.phptype *.php




It works like a charm. You will need to edit the PHP.INI file in your windows directory however to play with force redirects:

cgi.force_redirect = 0

and also edit the document path

doc_root = C:\mywebroot\

And that’s it!

I have only found 2 problems since using this. First and most annoying is that if you have a PHP script that references it’s self… it will get confused on the naming (but hey, in domino… any PHP is a blessing… I’ll take it!)
And also something I was wondering if anyone had ideas on.
If you have the index page …. Say index.php Domino will parse the file fine as a full URL such as www.mywebsiteurl.com/whatever/index.php
BUT is you type in www.mywebsite.com/whatever/ then domino doesn’t parse the file (even though index.php shows up (as php code) and is set as the servers default document)
Any ideas on that one? – is there a way to attach “index.php” at the end of the URL, if no document is seen?

Thanks!
I hope this works for all of you
Sean Baker




Any sucessful PHP on W2K ? (~James Asareson... 24.Jan.03)
. . RE: Any sucessful PHP on W2K ? (~Delores Nimjum... 9.Jul.03)
. . RE: Any sucessful PHP on W2K ? (~Lily Dwoalying... 27.Jan.03)
. . . . RE: Any sucessful PHP on W2K ? (~James Asareson... 28.Jan.03)
. . . . . . Any sucessful PHP on W2K ? (R5? ---... (~Bella Nonfanat... 19.Feb.03)
. . . . . . RE: Any sucessful PHP on W2K ? (~Lily Dwoalying... 28.Jan.03)
. . . . . . . . RE: Any sucessful PHP on W2K ? (~James Asareson... 28.Jan.03)
. . . . . . . . . . RE: Any sucessful PHP on W2K ? (~Lily Dwoalying... 29.Jan.03)
. . . . . . . . . . . . RE: Any sucessful PHP on W2K ? (~Umberto Eljumi... 28.May.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS